package i18n;

import javax.swing.JButton;

import GUI.forms.GeneralForm;

public class JButtonI18N extends JButton {
	private GeneralForm form;
	
	public JButtonI18N(String msg) {
		super(LanguageUtils.getMessage(msg));
	}
	
	public JButtonI18N(String msg, GeneralForm form) {
		this(msg);
		this.form=form;
	}
	
	public JButtonI18N(String msg, GeneralForm form, String actionCommand) {
		this(msg, form);
		this.setActionCommand(actionCommand);
		this.addActionListener(form.getActionListener());
	}

	public GeneralForm getForm() {
		return this.form;
	}
}
